<h1>Listing Documents</h1>

<table class="tabular">
  <tr>
    <th>Document Description</th>
    <th>&nbsp;</th>
    <th>&nbsp;</th>
    <th>&nbsp;</th>
  </tr>
<% @documents.each do |document| %>
  <tr class="<%= cycle("odd", "even") %>" >
    <td><%=h document.description %></td>
    <td><%= link_to 'Show', document %></td>
    <td><%= link_to 'Edit', edit_document_path(document) %></td>
    <td><%= link_to 'Destroy', document, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>

    <tr class="tabular_bottom">
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
    </tr>

    <tr>
	    <td><%= link_to 'New document', new_document_path %></td>
    </tr>
</table>
<br />